<?php

header('Content-Type:text/html;charset=utf-8');

@$a=$_GET['czid'];


$PDO=new PDO('mysql:dbname=diancan;charset=UTF8;','root');
$sel=$PDO->prepare('delete from canzhuo where id=:a');
if ($sel->execute(array('a'=>$a))){
	header('Location:czgl.php');
}else{
	echo "餐桌正在使用，无法删除";
	header('Refresh:1;url=czgl.php');
}

?>